package com.library.admin.modules.userrole.bo;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.List;

/**
 * 用户和角色关联表(UserRole)BO类
 *
 * @author xyh
 * @since 2023-10-02 15:09:37
 */
@Data
public class UserRoleInsert implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 171761404814736211L;

    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 角色ID
     */
    private List<Integer> roleIds;

    public UserRoleInsert() {

    }

    public UserRoleInsert(Integer userId, List<Integer> roleIds) {
        this.userId = userId;
        this.roleIds = roleIds;
    }

}
